<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;padding: 0;
    }
    div#content{
      width: 400px;height: 150px;
      border:10px solid pink;
      margin:30px auto;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      position: relative;
    }
    img{
      width: 100px;height: 100px;display: block;
    }
    #current{
      position: absolute;
      width: 288px;height: 180px;
      top: 0;left: 0;
      display: none;
    }
    #current>img{
      width: 100%;height: 100%;
    }
  </style>
</head>
<body>
    <div id="content">
      <img src="1.png" alt="">
      <img src="2.png" alt="">
      <img src="3.png" alt="">
      <div id="current">
        <img src="1.png" alt="">
      </div>
    </div>
</body>
</html>
<script src='https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js'></script>
<script>
  $('#content>img').mouseenter(function(){
    $('#current').css({display:'block'})
  })
  $('#content>img').mouseleave(function(e){
    $('#current').css({display:'none'})
  })
  $('#content>img').mousemove(function(e){
      // console.log('111');
      // console.log('x',e.offsetX);
      $('#current').css({left:e.offsetX+$(this).position().left+10,top:e.offsetY+$(this).position().top+10}).find('img').attr('src',$(this).attr('src'))
    })
</script>